<template>
  <!--pages/index/component/watchList/watchList.wxml-->
  <div class="content">
    <div class="scroll-div_H"  style="width: 100%">
      <div class="title_item_content" v-for="(item,index) in title"  @click="toTitle(index)" >
        <span :class="[isIndex==index?'title_text':'noselect']">{{item.title}}</span>
        <div v-if="isIndex==index" class="title_line"></div>
      </div>
    </div>
    <div class="news_list_content">
      <div class="news_item_content" v-for="item in 4">
        <div style="display:flex" bindtap="toHotpost">
          <div class="left_content">
            <div class="left_image_content"></div>
          </div>
          <div class="mittle_content">
            <div class="mittle_top_content">
              <div class="mittle_top_title_conent">
                <span class="title_text">全城进行智能化管理</span>
                <div class="title_icon_content">热</div>
              </div>
              <div class="subtittle_content">
                让科技走进生活,走进身边 技走进大街
              </div>
            </div>
            <div style="display:flex">
              <span class="news_time">凤凰娱乐</span>
              <span class="news_time" style="margin-left:10px">4小时前</span>
            </div>
          </div>
        </div>
        <img src="http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/lvyou/lvyou-gengduo.png" style="width:10px;height:19px"></img>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'watchList',
    data(){
      return{
        isIndex:0,
        title:[
          {title:'莆田新闻',isClick:false},
          {title:'热点活动',isClick:false},
          {title:'文化故事',isClick:false},
          {title:'新鲜故事',isClick:false},
          {title:'村里故事',isClick:false},
        ]
      }
    },
    methods:{
      toTitle(index){

      }
    }
  }
</script>

<style scoped>
  /* pages/index/component/watchList/watchList.wxss */
  .content {
    margin-top: 5.5px;

  }

  .scroll-div_H {
    white-space: nowrap;
    background-color: white;
    display: flex;
    overflow-x: auto;
  }

  .scroll-div-item_H {
    display: inline-block;
    width: 375px;
    /* height: 300px; */
  }

  .title_item_content {
    display: inline-flex;
    padding-right: 10px;
    margin-top: 20.5px;
    min-width: 114px;
    align-items: center;
    flex-shrink: 1;
    flex-direction: column;
    justify-content: space-between;
  }

  .title_text {

    font-size: 16.5px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    color: #A92B23;
  }

  .title_line {
    background-color: #A92B23;
    height: 2.5px;
    margin-top: 10px;
    width: 100%;
  }

  .news_list_content {
    margin-top: 5px;
    background-color: white;
    padding-top: 9px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 9px;
  }

  .news_item_content {
    display: flex;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); */
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(232, 232, 232, 1);
    padding-bottom: 9.5px;
    padding-top: 9.5px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .left_content {
    display: flex;
  }

  .left_image_content {
    width: 105.5px;
    height: 101.5px;
    background-color: teal;
    border-radius: 2.5px;
  }

  .mittle_content {
    padding-top: 10.5px;
    margin-left: 25.5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mittle_top_title_conent {
    display: flex;
    align-items: center;
  }

  .title_text {
    font-size: 13.5px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    color: #A92B23;
    line-height: 13.5px;
  }
  .noselect{
    font-size: 13.5px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    line-height: 13.5px;
  }
  .mittle_top_content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .title_icon_content {
    width: 20.5px;
    height: 12px;
    background: rgba(240, 87, 113, 0.12);
    border: 1px solid #F05771;
    border-radius: 2px;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F05771;
    margin-left: 25px;
  }
  .subtittle_content{
    width: 114.5px;
    margin-top: 13.5px ;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333333;
    font-size: 10px;
  }
  .news_time{

    font-weight: 500;
    color: #969698;
    font-size: 10px;
  }
</style>
